import { defineStore } from "pinia";
import { queryCompanyInfo } from "@/api/index";
const useCompanyStore = defineStore("company", {
  state: () => ({
    detail: null,
  }),
  actions: {
    setCompanyDetail() {
      queryCompanyInfo().then((res) => {
        this.detail = res.data;
      });
    },
  },
});
export default useCompanyStore;
